/* 页面头部样式 - 统一设计 */
.page-header {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-main {
    flex: 1;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 var(--spacing-xs) 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.page-subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

.header-decoration {
    flex-shrink: 0;
    margin-left: var(--spacing-md);
}

.decoration-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: bounce 2s infinite;
    backdrop-filter: blur(10px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* 统计概览样式 - 从菜园页面移动过来 */
.stats-overview {
    margin-bottom: var(--spacing-lg);
}

.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.stats-row:last-child {
    margin-bottom: 0;
}

.stat-card {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.stat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.stat-card.primary {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05), rgba(39, 174, 96, 0.05));
}

.stat-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.2;
}

/* 用户信息卡片样式 */
.user-info-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
    transition: all 0.3s ease;
}

.user-info-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.user-avatar {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.1));
    border-radius: 50%;
    border: 2px solid rgba(46, 204, 113, 0.2);
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.2;
}

.user-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* 顶部封面区域 - 移动端优化 */
.profile-cover {
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-card);
}

/* 添加装饰性元素 */
.profile-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.08)"/></svg>');
    background-size: 80px;
    background-repeat: repeat;
    opacity: 0.7;
    z-index: 1;
}

/* 个人信息卡片 - 调整为半圆顶设计 */
.user-profile-card {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 10;
    animation: slideUp 0.5s ease-out forwards;
}

/* 创建半圆顶效果 */
.user-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 100%;
    height: 100px;
    border-radius: 50% 50% 0 0;
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    z-index: -1;
}

/* 头像容器 - 调整位置确保头像显示 */
.avatar-container {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    z-index: 20;
}

/* 用户头像样式 - 确保头像正确显示 */
.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 3px solid white;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    position: relative;
    z-index: 20;
    color: white;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

/* 用户名称样式 */
.user-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.3px;
}

/* 确认对话框样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dialog-container {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    width: 90%;
    max-width: 360px;
    box-shadow: var(--shadow-large);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.dialog-overlay.active .dialog-container {
    transform: translateY(0);
}

.dialog-container h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 18px;
    font-weight: 700;
}

.dialog-container p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
    font-size: 15px;
}

.dialog-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Toast提示样式 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn {
    border: none;
    border-radius: var(--border-radius-md);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-light);
}

/* 危险操作项样式 */
.danger-item {
    color: #e74c3c;
}

.danger-item:active {
    background-color: rgba(231, 76, 60, 0.1);
}

/* 用户描述样式 */
.user-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

/* 统计数据容器样式 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    margin: var(--spacing-xl) var(--spacing-md);
    padding: var(--spacing-lg);
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.6s ease-out forwards;
}

/* 详细数据统计 */
.detailed-stats {
    margin: var(--spacing-lg) var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.stats-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.detail-stat {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--card-background) 0%, rgba(46, 204, 113, 0.05) 100%);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.detail-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    background: linear-gradient(135deg, var(--card-background) 0%, rgba(46, 204, 113, 0.1) 100%);
}

.detail-icon {
    font-size: 24px;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
}

.detail-info {
    flex: 1;
    min-width: 0;
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.detail-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 统计项样式 */
.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 var(--spacing-md);
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background-color: var(--border-color);
}

/* 统计数值样式 */
.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

/* 统计标签样式 */
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 设置区域标题样式 */
.settings-section-title {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-md);
}

/* 设置列表样式 */
.settings-list {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

/* 设置项样式 */
.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background-color: #f9f9f9;
    transform: translateX(4px);
}

.setting-item:active {
    transform: translateX(2px);
}

/* 设置项图标样式 */
.setting-icon {
    font-size: 20px;
    margin-right: var(--spacing-md);
    width: 28px;
    text-align: center;
}

/* 设置项文本样式 */
.setting-text {
    flex: 1;
    font-size: 16px;
}

/* 设置项箭头样式 */
.setting-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

/* 危险操作区域样式 */
.danger-actions {
    margin-bottom: var(--spacing-xl);
}

/* 危险操作项样式 */
.danger-item {
    background-color: #fff8f8;
    border: 1px solid #ffecec;
}

.danger-item .setting-text {
    color: #e74c3c;
}

.danger-item:hover {
    background-color: #fff0f0;
}

/* 确认对话框样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dialog-container {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    width: 90%;
    max-width: 360px;
    box-shadow: var(--shadow-large);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.dialog-overlay.active .dialog-container {
    transform: translateY(0);
}

.dialog-container h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 18px;
    font-weight: 700;
}

.dialog-container p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
    font-size: 15px;
}

.dialog-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* 版本信息样式 */
.version-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-xl);
}

/* 动画定义 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 375px) {
    .profile-cover {
        height: 180px;
        padding: var(--spacing-md);
    }
    
    .user-profile-card {
        padding: 50px var(--spacing-md) var(--spacing-md);
        margin-top: -40px;
    }
    
    .user-avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
        margin: -50px auto var(--spacing-sm);
    }
    
    .user-name {
        font-size: 22px;
    }
    
    .stats-container {
        padding: var(--spacing-md);
        margin: var(--spacing-lg) var(--spacing-sm);
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .setting-item {
        padding: var(--spacing-md);
    }
    
    .setting-text {
        font-size: 15px;
    }
}